<header class="header">
  <a [routerLink]="[ '/home' ]" routerLinkActive="active" >首页</a>
 

  <a [routerLink]="[ '/product' ]" routerLinkActive="active">产品</a>
    
  <a [routerLink]="[ '/news' ]" routerLinkActive="active">新闻</a>
  
</header>
<router-outlet></router-outlet>